﻿namespace SQLStore
{
    using Models;
    using System.Data.Entity.ModelConfiguration;
    public class TagMap : EntityTypeConfiguration<Tag>
    {
        public TagMap()
        {
            ToTable("Tag");

            HasKey(t => t.TagId);

            Property(t => t.TagName)
                  .HasColumnName("TagName")
                  .HasMaxLength(512);

            Property(t => t.TagUrl)
                  .HasColumnName("TagUrl")
                  .HasMaxLength(512);
        }
    }
}
